@charset "UTF-8";
@import "variables";
@import "vant";

body {
  font-size: $font-size;
  color: $text-color;
}

/** text color **/
.text-default {
  color: $text-color;
}

.text-primary {
  color: $primary-color;
}

.text-primary-hover {
  color: $primary-color;
  cursor: pointer;
  transition: color 0.3s;
  &:hover {
    color: lighten($primary-color, 10%);
  }
}

.text-secondary {
  color: $secondary-color;
}

.text-contrast {
  color: $contrast-color;
}

.text-info {
  color: $info-color;
}

.text-warning {
  color: $warning-color;
}

.text-gray3 {
  color: #333;
}

.text-gray6 {
  color: #666;
}

.text-gray9 {
  color: #999;
}

.text-white {
  color: $white;
}

.text-black {
  color: $black;
}

.text-bold {
  font-weight: bold;
}

.fw500 {
  font-weight: 500;
}

.fw600 {
  font-weight: 600;
}

/** font size **/
.f12 {
  font-size: 12px;
}

.f13 {
  font-size: 13px;
}

.f14 {
  font-size: 14px;
}

.f16 {
  font-size: 16px;
}

.f18 {
  font-size: 18px;
  line-height: 26px;
}

.f20 {
  font-size: 20px;
}

.f22 {
  font-size: 22px;
}

.f24 {
  font-size: 24px;
}

.f26 {
  font-size: 26px;
}

.f30 {
  font-size: 30px;
}

.f32 {
  font-size: 32px;
}

.f34 {
  font-size: 34px;
}

.f36 {
  font-size: 36px;
}

.f48 {
  font-size: 48px;
}

.f50 {
  font-size: 50px;
}

/** width **/
.w120 {
  width: 120px;
}

.w160 {
  width: 160px;
}

.p20 {
  padding: 40px;
}

// margin
.mt5 {
  margin-top: 5px !important;
}

.mt10 {
  margin-top: 10px !important;
}

.mt15 {
  margin-top: 15px !important;
}

.mt20 {
  margin-top: 20px !important;
}

.mt25 {
  margin-top: 25px !important;
}

.mt30 {
  margin-top: 30px !important;
}

.mt40 {
  margin-top: 40px !important;
}

.mr5 {
  margin-right: 5px !important;
}

.mr10 {
  margin-right: 10px !important;
}

.mr15 {
  margin-right: 15px !important;
}

.mr20 {
  margin-right: 20px !important;
}

.mb5 {
  margin-bottom: 5px !important;
}

.mb10 {
  margin-bottom: 10px !important;
}

.mb15 {
  margin-bottom: 15px !important;
}

.mb20 {
  margin-bottom: 20px !important;
}

.mb30 {
  margin-bottom: 30px !important;
}

.ml5 {
  margin-left: 5px !important;
}

.ml10 {
  margin-left: 10px !important;
}

.ml15 {
  margin-left: 15px !important;
}

.ml20 {
  margin-left: 20px !important;
}

.ml25 {
  margin-left: 25px !important;
}

.mr25 {
  margin-right: 25px !important;
}

.mr35 {
  margin-right: 35px !important;
}

.mr65 {
  margin-right: 65px !important;
}

.ml40 {
  margin-left: 40px !important;
}

.bg-white {
  background-color: #fff;
}

.h100 {
  height: 100%;
}
.w100 {
  width: 100%;
}

/** 通用页面title样式 **/
.page-title {
  position: relative;
  display: inline-block;
  font-size: 30px;
  letter-spacing: 0.1em;
  color: $text-color-6;
  &:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    height: 8px;
    width: 100%;
    background-color: rgba($primary-color, 0.1);
  }
}
.primary-shadow {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
}

// transition
.transition-all {
  transition: all 0.3s;
}

.transition-color {
  transition: color 0.3s;
}

.transition-bg-color {
  transition: background-color 0.3s;
}

.cursor-pointer {
  cursor: pointer;
}

// display
.inline-block {
  display: inline-block !important;
  vertical-align: middle !important;
}

.inline-top {
  display: inline-block !important;
  vertical-align: top !important;
}

.block {
  display: block;
}

//flex
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: flex-start;
}

.row-flex {
  -moz-box-orient: horizontal;
  -webkit-box-orient: horizontal;
  -moz-box-direction: normal;
  -webkit-box-direction: normal;
  -moz-box-lines: multiple;
  -webkit-box-lines: multiple;
  -ms-flex-flow: row wrap;
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
}

.col-flex {
  flex-flow: column wrap;
}

.flex {
  display: flex;
}

.flex-justify {
  justify-content: space-between;
}

.flex-around {
  justify-content: space-around;
}

.flex-evenly {
  justify-content: space-evenly;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex1 {
  flex: 1;
}

.flex-column {
  flex-direction: column;
}

.flex-row-reverse {
  flex-direction: row-reverse;
}

.required {
  position: relative;
  &::before {
    content: "*";
    position: absolute;
    left: -20px;
    top: 30%;
    transform: translateY(-50%);
    color: #f67979;
    font-size: 30px;
    line-height: 1;
    font-family: "SimSun";
  }
}

.hidden {
  display: none !important;
}

.tar {
  text-align: right;
}

.tac {
  text-align: center;
}

.p-relative {
  position: relative;
}

.common-page {
  padding-bottom: $tabbar-height;
}

.overflow-y {
  overflow-y: auto;
}

.text-gray {
  color: #a2a6b8;
}

.html-w100 {
  max-width: 100%;
}
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
